package capricornus.components.window
{
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;
	
	public class FrameWindow extends Window
	{
		public function FrameWindow(owner:DisplayObjectContainer)
		{
			super(owner);
		}
		
		override protected function set panel(value:Sprite):void
		{
			super.panel = value;
			var back:DisplayObject = panel.getChildByName("back");
			if( back != null )
			{
				_validRect = back.getBounds( value );
				_validRect.width = back.width;
				_validRect.height = back.height;
			}
		}
	}
}